<!DOCTYPE html>
<html>
    <head>
        <?= !empty($template["head"]) ? $template["head"] : "" ?>
        <?= !empty($template["jsCss"]) ? $template["jsCss"] : "" ?>
    </head>
    <body<?= isset($body_class) ? " class='" . $body_class . "'" : "" ?>>
        <?= $layoutContent; ?>
        <script>
            layui.config({
                base: '<?= PUBLIC_URL ?>/plugin/luadmin/' //静态资源所在路径
            }).extend({
                index: 'lib/index' //主入口模块
            }).use(['index', 'user'], function () {
                var $ = layui.$
                        , setter = layui.setter
                        , admin = layui.admin
                        , form = layui.form
                        , router = layui.router()
                        , search = router.search;
                form.render();
            });
        </script>
    </body>
</html>